/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.modules.admin.vo.parts.AttachedFileVo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 实体类
 *
 * @author ysq
 * @since 2022-06-28
 */
@Data
@TableName(value = "blade_sparepart_prices",autoResultMap = true)
public class SparepartPrices extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 工单id
	 */
	@ApiModelProperty(value = "工单id")
	private Long planId;
	/**
	 * 配件工单上级维修id
	 */
	@ApiModelProperty(value = "配件工单上级维修id")
	private Long parentPlanId;
	/**
	 * 批量审核组ID
	 */
	@ApiModelProperty(value = "批量审核组ID")
	private Long groupId;
	/**
	 * 成本价格
	 */
	@ApiModelProperty(value = "成本价格")
	private BigDecimal costPrice;
	/**
	 * 销售价格
	 */
	@ApiModelProperty(value = "销售价格")
	private BigDecimal sellingPrice;
	/**
	 * 总价用于后期统计
	 */
	@ApiModelProperty(value = "总价用于后期统计")
	private BigDecimal allPrice;
	/**
	 * 附件文档
	 */
	@ApiModelProperty(value = "附件文档")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<AttachedFileVo> attachedFile;
	/**
	 * 工作流节点id
	 */
	@ApiModelProperty(value = "工作流节点id")
	private Long nodeId;
	/**
	 * 报价人
	 */
	@ApiModelProperty(value = "报价人")
	private String priceUserName;
	/**
	 * 报价审核状态 0:未通过1：已通过
	 */
	@ApiModelProperty(value = "报价审核状态 0:未通过1：已通过")
	private Integer priceStatus;
	/**
	 * 仓库审核状态 0:未通过1：已通过
	 */
	@ApiModelProperty(value = "仓库审核状态 0:未通过1：已通过")
	private Integer warehouseStatus;
	/**
	 * 仓库审批人名称
	 */
	@ApiModelProperty(value = "仓库审批人名称")
	private String warehouseUserName;
	/**
	 * 报价人审批时间
	 */
	@ApiModelProperty(value = "报价人审批时间")
	private Date priceCreateTime;
	/**
	 * 仓库管理员审批时间
	 */
	@ApiModelProperty(value = "仓库管理员审批时间")
	private Date warehouseCreateTime;

	@ApiModelProperty("报价审批意见")
	private String approveDesc;

	@ApiModelProperty("仓管审批意见")
	private String waseApproveDesc;

	@ApiModelProperty("调用分配")
	private Date apportionTime;

	@ApiModelProperty("配件名称")
	@TableField(exist = false)
	private String partName;

	@ApiModelProperty("配件编号")
	@TableField(exist = false)
	private String partNO;

	@ApiModelProperty("配件数量")
	@TableField(exist = false)
	private String partNum;

	@ApiModelProperty("创建人")
	@TableField(exist = false)
	private String createUserName;

}
